package com.liuyu.common.framework.spring.beanfaxtory;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
import org.springframework.stereotype.Component;

/**
 * @ClassName TestBeanDefinitionRegistryPostProcessor
 * @Author: liuyu
 * @Date: Created in 2021/8/5 23:47
 * @Version: 1
 * @Modified By:
 */
@Slf4j
@Component
public class TestBeanDefinitionRegistryPostProcessor implements BeanDefinitionRegistryPostProcessor {
    @Override
    public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry beanDefinitionRegistry) throws BeansException {
        log.error("BeanDefinitionRegistryPostProcessor postProcessBeanDefinitionRegistry 调用");
    }

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
        log.error("BeanDefinitionRegistryPostProcessor postProcessBeanFactory 调用");
    }
}
